import { ApiProperty } from '@nestjs/swagger';
import { WorkspaceStatus } from '../../../types/enums';
import { UserResponseDto } from '../../auth/dto/user-response.dto';

export class WorkspaceResponseDto {
  @ApiProperty({
    description: '工作区ID',
    example: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
  })
  id: string;

  @ApiProperty({
    description: '工作区名称',
    example: '产品研发部门工作区',
  })
  name: string;

  @ApiProperty({
    description: '工作区描述',
    example: '这是产品研发部门的工作区，用于管理所有研发项目',
    nullable: true,
  })
  description: string | null;

  @ApiProperty({
    description: '工作区状态',
    enum: WorkspaceStatus,
    example: WorkspaceStatus.ACTIVE,
  })
  status: WorkspaceStatus;

  @ApiProperty({
    description: '创建人ID',
    example: 'a4cb6618-a802-42cb-86bd-5d202c930abe',
  })
  createdById: string;

  @ApiProperty({
    description: '创建人信息',
    type: UserResponseDto,
  })
  createdBy: UserResponseDto;

  @ApiProperty({
    description: '创建时间',
    example: '2023-01-01T00:00:00.000Z',
  })
  createdAt: Date;

  @ApiProperty({
    description: '更新时间',
    example: '2023-01-01T00:00:00.000Z',
  })
  updatedAt: Date;
} 